package org.edu.modules.oa.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.util.Date;
@Data
// 表名
@TableName("ve_oa_car_set")
// 返回值变成对象
@Accessors(chain = true)
// 重写toString
@EqualsAndHashCode(callSuper = false)
public class VeOaCarSetEntity {

    /**id*/
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    //类型id(字典)
    @Excel(name = "类型id(字典)", width = 15)
    @ApiModelProperty(value = "类型id(字典)")
    @TableField(value = "type_id")
    private String typeId;

    //参数值
    @Excel(name = "参数值", width = 15)
    @ApiModelProperty(value = "参数值")
    @TableField(value = "value")
    private String value;

    //排序
    @Excel(name = "排序", width = 15)
    @ApiModelProperty(value = "排序")
    @TableField(value = "sort")
    private Integer sort;

    //创建人
    @Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    @TableField(value = "create_by")
    private String createBy;

    //创建时间
    @Excel(name = "创建时间", width = 15)
    @ApiModelProperty(value = "create_time")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    //修改人
    @Excel(name = "修改人", width = 15)
    @ApiModelProperty(value = "修改人")
    @TableField(value = "update_by")
    private String updateBy;

    //修改时间
    @Excel(name = "修改时间", width = 15)
    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    //逻辑删除
    @ApiModelProperty(value = "逻辑删除(1:已删除，0:未删除)")
    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;

    //终端id
    @Excel(name = "终端id", width = 15)
    @ApiModelProperty(value = "终端id")
    @TableField(value = "terminalId")
    private Integer terminalId;

    //录入人姓名
    @Excel(name = "录入人姓名", width = 15)
    @ApiModelProperty(value = "录入人姓名")
    @TableField(value = "create_by_name")
    private String createByName;

    //修改人姓名
    @Excel(name = "修改人姓名", width = 15)
    @ApiModelProperty(value = "修改人姓名")
    @TableField(value = "update_by_name")
    private String updateByName;
}
